<?php

namespace App\Http\Requests\Api;


class UserPhoneBindRequest extends FormRequest
{


    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        switch ($this->method()){
            case "POST":{
                return  [
                    'phone_key' => 'required|string',
                    'phone_code' => 'required|string',
                    "nickname"=>"required|string",
                ];
            }
        }
    }
}
